package com.yunchen.BooksManagementSystem.manage.dao;

import com.yunchen.BooksManagementSystem.manage.entity.borrowingRecord;
import com.yunchen.BooksManagementSystem.user.entity.UserInformation;

import java.sql.SQLException;
import java.util.ArrayList;


public interface adminDao {
    int addBook(String picture,String name,String author,String category,int amount,String introduction) throws Exception;
    int delBook(String name) throws Exception;
    int updateBook(String name,int amount) throws Exception;
    ArrayList<UserInformation> findAllStudent() throws Exception;
    int agreeBorrow(String userName,String bookName) throws Exception;
    int agreeReturnBook(String userName,String bookName)throws SQLException;
    ArrayList<borrowingRecord> showRecord() throws SQLException;
    ArrayList<borrowingRecord> userBorrowApply()throws SQLException;
    ArrayList<borrowingRecord> userReturnApply() throws SQLException;





}
